package Slidespresso;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;

import XML.XMLWriter;

public class test {
	public static void main(String[] args) throws TransformerException, ParserConfigurationException {
		/*
		Presentation p = new Presentation("presentation");
		Slide s = new Slide("slide", "slideValue");
		Slide s2 = new Slide("slide2","slideValue2");
		Text t1 = new Text("Text","textValue");
		
		s.addElement(t1);
		p.addElement(s);
		p.addElement(s2);
		
		
		try {
			p.xmlOutput();
		} catch (ParserConfigurationException e) {
			System.out.println("catch 1");
		} catch (TransformerException e) {
		System.out.println("catch 2");
		}
	*/
	//creer rootElement
	XMLWriter.instantiate("rootElement");
	
	//creer parentElement
	XMLWriter.createParentElement("parentElement1");
	
	//creer child elementen
	XMLWriter.createChildWithValue("childElement1.1", "abcde");
	XMLWriter.createChildWithValue("childElement1.2", "1234");
	
	//koppel childElementen aan parentElement & parentElement aan rootElement
	XMLWriter.appendChildElement();
	
	
	
	
	
	XMLWriter.commit();
	}
}
